import request from '@/utils/request'

//查询车辆租购过户信息列表
export function getList(query) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/list`,
    method: 'get',
    query
  })
}

//新增车辆租购过户信息
export function carLeasePurchaseTransfer(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer`,
    method: 'post',
    data
  })
}

// 弹框  获取车辆租购过户信息详细信息
export function getVehicleDisposalList(data) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/getVehicleDisposalList`,
    method: 'post',
    data
  })
}

//获取车辆租购过户信息详细信息
export function getDetails(id) {
  return request({
    url: `/lease/carLeasePurchaseTransfer/${id}`,
    method: 'get',
  })
}
